package spring.boot.notes.jacquesh.event2.project.listenters;

import org.springframework.stereotype.Component;
import spring.boot.notes.jacquesh.event.project.event.SnowEvent;
import spring.boot.notes.jacquesh.event.project.event.WeatherEvent;
@Component
public class SnowEventListenter  implements  WeatherListenter{
	@Override
	public void onWeatherEvent(WeatherEvent event) {
		if(event instanceof SnowEvent){
			event.getWeather();
		}
	}
}
